﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SiteParser.Core.Configuration
{
	public class FormatterItemConfiguration : ConfigurationElement
	{
		private const string FORMATTER_NAME_PROPERTY_NAME = "name";
		[ConfigurationProperty(FORMATTER_NAME_PROPERTY_NAME, IsRequired = true)]
		public string Name {
			get { return (string)this[FORMATTER_NAME_PROPERTY_NAME]; }
		}

		private const string FORMATTER_TYPE_PROPERTY_NAME = "type";
		[ConfigurationProperty(FORMATTER_TYPE_PROPERTY_NAME, IsRequired = true)]
		public string Type {
			get { return (string)this[FORMATTER_TYPE_PROPERTY_NAME]; }
		}
	}
}
